package com.ldx.eduline.common.exception;

import com.ldx.eduline.common.bean.R;
import com.ldx.eduline.common.utils.MyStateCodeEnum;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandle {

//    @ExceptionHandler(Exception.class)
//    public R globalException(Exception e){
//        return R.custom(MyStateCodeEnum.UNKNOWN_ERROR.getCode(),MyStateCodeEnum.UNKNOWN_ERROR.getMsg());
//    }

}
